export default {
	
	
	/**
	 * 
	 */
	tokenExpire(){
		let $store = getCurrentPages()[0].$vm.$store
		uni.showModal({
			title: '系统提示',
			content: '登录状态已过期，请点击重新登录',
			showCancel: false,
			success: function(res) {
				$store.dispatch('logOut').then(() => {
					uni.navigateTo({
						url: '/pages/main/index'
					})
				})
				return Promise.reject()
			}
		});
	},
	
	/**
	 * 车牌被其他用户绑定
	 */
	carNumBindError(){
		uni.showModal({
		  title: '车辆已被其他车主绑定',
		  content: '提交认证资料可找回车辆',
			showCancel: true, 
			cancelText: "取消", 
			confirmText: "找回车辆", 
		  success: function success(res) {
		    if (res.confirm) {
		      uni.navigateTo({
		      	url: '/pages/home/index'
		      })
		    } else if (res.cancel) {
		    }
		  }
		});
	}
	
	
}